/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package dominio;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 *
 * @author gilcemar e naliane
 */
@Entity
@Table(name = "relatorio")
@NamedQueries({
    @NamedQuery(name = "Relatorio.findAll", query = "SELECT r FROM Relatorio r"),
    @NamedQuery(name = "Relatorio.findByPlano", query = "SELECT r FROM Relatorio r WHERE r.plano = :plano"),
    @NamedQuery(name = "Relatorio.findByModelo", query = "SELECT r FROM Relatorio r WHERE r.modelo = :modelo"),
    @NamedQuery(name = "Relatorio.findByDatainicio", query = "SELECT r FROM Relatorio r WHERE r.datainicio = :datainicio"),
    @NamedQuery(name = "Relatorio.findByMesAno", query = "SELECT r FROM Relatorio r WHERE r.mesAno = :mesAno"),
    @NamedQuery(name = "Relatorio.findByValor", query = "SELECT r FROM Relatorio r WHERE r.valor = :valor"),
    @NamedQuery(name = "Relatorio.findByNome", query = "SELECT r FROM Relatorio r WHERE r.nome = :nome"),
    @NamedQuery(name = "Relatorio.findByCpf", query = "SELECT r FROM Relatorio r WHERE r.cpf = :cpf")})
public class Relatorio implements Serializable {
    private static final long serialVersionUID = 1L;
    @Column(name = "plano")
    private Integer plano;
    @Column(name = "modelo", length = 20)
    private String modelo;
    @Column(name = "datainicio")
    @Temporal(TemporalType.DATE)
    private Date datainicio;
    @Column(name = "mes_ano", length = 2147483647)
    private String mesAno;
    @Column(name = "valor", precision = 8, scale = 8)
    private Float valor;
    @Column(name = "nome", length = 40)
    private String nome;
    @Column(name = "cpf", length = 14)
    @Id
    private String cpf;

    public Relatorio() {
    }

    public Integer getPlano() {
        return plano;
    }

    public void setPlano(Integer plano) {
        this.plano = plano;
    }

    public String getModelo() {
        return modelo;
    }

    public void setModelo(String modelo) {
        this.modelo = modelo;
    }

    public Date getDatainicio() {
        return datainicio;
    }

    public void setDatainicio(Date datainicio) {
        this.datainicio = datainicio;
    }

    public String getMesAno() {
        return mesAno;
    }

    public void setMesAno(String mesAno) {
        this.mesAno = mesAno;
    }

    public Float getValor() {
        return valor;
    }

    public void setValor(Float valor) {
        this.valor = valor;
    }

    public String getNome() {
        return nome;
    }

    public void setNome(String nome) {
        this.nome = nome;
    }

    public String getCpf() {
        return cpf;
    }

    public void setCpf(String cpf) {
        this.cpf = cpf;
    }

}
